package com.grain.security.rbac.service;

import com.grain.security.rbac.dto.ResourceInfo;

public interface ResourceService {
    ResourceInfo getTree(Long userId);

    ResourceInfo getInfo(Long id);

    ResourceInfo create(ResourceInfo resourceInfo);

    ResourceInfo update(ResourceInfo resourceInfo);

    void delete(Long id);

    Long move(Long id, boolean up);
}
